package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsCoupon;
import org.springframework.transaction.annotation.Transactional;


@Transactional(rollbackFor = Exception.class)
public interface CouponService {
    //按页码输出列表
    IPage<DtsCoupon> list(Integer id, String name,
                          Integer page, Integer limit,
                          String sort, String order);
    DtsCoupon findOneById(Integer id);

    DtsCoupon addOne(DtsCoupon coupon);

    DtsCoupon updateOne(DtsCoupon dtsCoupon);

    void deleteOne(DtsCoupon dtsCoupon);
}
